class Course {
    private String courseName;
    private String teacher;
    private int credit;
    private int classhour;
    private String department;

    public Course(String courseName, String teacher, int credit, int classhour, String department) {
        this.courseName = courseName;
        this.teacher = teacher;
        this.credit =credit;
        this.classhour = classhour;
        this.department = department;
    }

    public void Info() {
        System.out.println("课程信息:");
        System.out.println("课程名字: " + courseName);
        System.out.println("教师: " + teacher);
        System.out.println("学分: " + credit);
        System.out.println("学时: " + classhour);
        System.out.println("所属院系: " + department);
    }

    public String getCourseName() {
        return courseName;
    }

    public int getCredit() {
        return credit;
    }

    public void startCourse() {
        System.out.println(courseName + "课程已开设");
    }
}